import type { RouteRecordRaw } from 'vue-router';
import { createRouter, createWebHistory } from 'vue-router'

import Layout from '@Admin/layout/index.vue'
import { PageEnum } from '@Admin/utils/enums/pageEnums'

export const LAYOUT = () => Promise.resolve(Layout)
export const constantRoutes: RouteRecordRaw[] = [
    {
        path: PageEnum.LOGIN,
        name: 'Login',
        component: () => import('@Admin/views/account/login.vue')
    }
];


const router = createRouter({
    history: createWebHistory(),
    routes: constantRoutes
});
export default router

